/**
 * Created by wangdunwen on 2017/7/14.
 */
define(function () {
    let that;
    let reminderPanel = function () {
        that = this;
    }

    /*显示提示框*/
    reminderPanel.prototype.show = function(content) {
        $('#tipPanel').fadeIn('slow');
        $('#tipBody').html(content);

        /*提示面板关闭事件监听*/
        $('#tipClose').click(function() {
            that.hide();
        });
    }

    /*关闭提示框*/
    reminderPanel.prototype.hide = function() {
        $('#tipPanel').fadeOut('slow');
    }

    return reminderPanel;
});